
//display a number
/*int main()
{
	P2_4 = 0;
	P2_3 = 0;
	P2_2 = 0;
	P0 = 0x80;
	while(1)
		;
	return 0;
}*/

//time
/*
void Time(int a)		//1??@11.0592MHz
{
		while(a--)
		{
				_nop_();
				_nop_();
				_nop_();
		}
}

void nums(int a)
{
	switch(a)
	{
		case 1 : P0 = 0x30;break;
		case 2 : P0 = 0x5B;break;
		case 3 : P0 = 0x4F;break;
		case 4 : P0 = 0x66;break;
		case 5 : P0 = 0x6D;break;
		case 6 : P0 = 0x7D;break;
		case 7 : P0 = 0x7;break;
		case 8 : P0 = 0x7F;break;
		case 9 : P0 = 0x6F;break;
		case 0 : P0 = 0x3F;break;
	}
}

void numb(int a, int k)
{
	switch(k)
	{
		
		case 0:P2_4 = 0;P2_3 = 0;P2_2 = 0;break;
		case 1:P2_4 = 0;P2_3 = 0;P2_2 = 1;break;
		case 2:P2_4 = 0;P2_3 = 1;P2_2 = 0;break;
		case 3:P2_4 = 0;P2_3 = 1;P2_2 = 1;break;
		case 4:P2_4 = 1;P2_3 = 0;P2_2 = 0;break;
		case 5:P2_4 = 1;P2_3 = 0;P2_2 = 1;break;
		case 6:P2_4 = 1;P2_3 = 1;P2_2 = 0;break;
		case 7:P2_4 = 1;P2_3 = 1;P2_2 = 1;break;
	}
	nums(a);
	Time(1);
	P0 = 0x0;
}


void print(int a)
{
	int z = 1;
	int z2 = 0;
	while(a / z)
	{
		z *= 10;
		z2++;
	}
	z /= 10;
	z2--;
	while(z)
	{
		numb((a / z) % 10, z2);
		z2 = z2 - 1;
		z/=10;
	}
}


int main()
{
	int a = 0;
	int b = 0;
	while(1)
	{
		while(b < 500)
		{
			print(a);
			//Time(10000000);
			b++;
		}
		b = 0;
		if(a == 6535)
				a = 0;
			else
				a++;
	}
	return 0;
}
*/

int main()
{
	P2_4 = 0;
	P2_3 = 0;
	P2_2 = 0;
	P0 = 0x1;
	return 0;
}
	/*
#include <REGX52.H>
#include<intrins.h>
#include"lcd1602.h"


int main()
{
	LCD_Init();
	LCD_ShowChar(1,1,'a');
	while(1);
	return 0;
}*/